"""wage = int(input("您期望的工资是:"))
number = wage - 1500
print("您的月工资超出最低工资标准" + str(number) + "元")"""


"""a = int(input("请输入长方形的高:"))
b = int(input("请输入长方形的宽:"))
len = 2 * a +2 * b
area = a*b
print("周长为: "+str(len))
print("面积为:"+str(area))"""


"""num , name ,sex ,birth = input('请输入学号﹑姓名﹑性别﹑籍贯: ').split()
print('学号: '+num)
print('姓名: '+name)
print('性别: '+sex)
print('籍贯: '+birth)"""

"""name, na = input('请输入姓名、岗位:').split()
mo1,mo2,mo3 = map(int, input('请输入基本工资﹑岗位工资、绩效工资: ').split())
sum = mo1 + mo2 + mo3
print('姓名: ' + name)
print('岗位:' +name)
print("总工资:" + str(sum) +"元")"""


"""num , name , ne = input('请输入学号、姓名、专业:').split()
num1,num2, num3,num4 , num5 = map(int , input('请输入语文、数学、外语﹑体育、计算机五科成绩:').split())
sum = num1 + num2 + num3 + num4 + num5
averger = (num1 + num2 + num3 + num4 + num5)/5
print('学号: '+num)
print('姓名: '+name)
print("总分:" +str(sum))
print("平均分:" + str(averger))"""

"""h,m,s = eval(input('请输入时，分，秒：'))
hour = h * 60 * 60
min = m * 60
print(hour + min + s)"""

"""total = int(input('请输入总秒数：'))
hour=  total // 3600
min = (total - hour *3600)//60
s = total - (hour * 3600 + min * 60)
print("小时数为：",hour)
print("分钟数为：",min)
print("秒数为：",s)
"""

"""c = float(input('请输入摄氏温度：'))
f = 9 * c / 5 + 32
print("华氏温度为: %.2f" % f)"""


"""a,b,c=eval(input('请输入长方体的长、宽、高：'))
l = 4 * (a + b + c)
z = 2 * (a * b + b * c + a * c)
v = a * b * c
print("棱长之和：",l)
print("表面积之和：",z)
print("体积：",v)"""

"""import math

a,b,c=eval(input('请输入三角形的三边：'))
l  = a + b + c
s = l / 2
area = math.sqrt(s * (s-a) * (s-b) * (s-c))
print("周长：",l)
print("面积：",area)
"""

"""fa,mo = eval(input('请输入父母的身高：'))
s = (fa + mo) * 0.54
d = (fa * 0.923 + mo) / 2
print("儿子身高：%.2f" % s)
print("女儿身高：%.2f" % d)
"""

a1,b1,c1=input('请输入第一种商品的名称、单价、数量：').split()
a2,b2,c2=input('请输入第二种商品的名称、单价、数量：').split()
a3,b3,c3=input('请输入第三种商品的名称、单价、数量：').split()

num = int(c1) + int(c2) + int(c3)
pay1 = float(b1) * float(c1)
pay2 = float(b2) * float(c2)
pay3 = float(b3) * float(c3)

z = pay1 + pay2 + pay3

print("Name\tPrice\tQuantity\tCount")
print("-----------------------------------")
print(a1,"\t",b1,"\t",c1,"\t\t\t",pay1)
print(a2,"\t",b2,"\t",c2,"\t\t\t",pay2)
print(a3,"\t",b3,"\t",c3,"\t\t\t",pay3)
print("====================================")
print("sum\t\t\t\t",num,"\t\t",z)
